﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CDSB.Indicators.Model
{
    public class CDSBPunctualityIndicator
    {
        public Decimal TotalTasks {get;set;}
        public Decimal OnDate { get; set; }
        public Decimal OutOfDate { get; set; }

        public Decimal GetOnDatePercent()
        {
            Decimal Percent = Math.Round((this.OnDate / this.TotalTasks) * 100,1);
            return Percent;
        }

        public Decimal GetOutOfDatePercent()
        {
            Decimal Percent = Math.Round((this.OutOfDate / this.TotalTasks) * 100, 1); ;
            return Percent;
        }
    }
}
